// pages/account/namecheck/uncheck.js
var common = require('../../../common.js');
Page({
  data: {},
  onLoad: function (options) {
  },
  iscertify: function () {
    wx.getStorage({
      key: 'user',
      success: function (res) {
        console.log(res)
        common.cRequst({
          url: 'http://' + common.serveIp + '/user.php?c=dp_authentication&a=approveInfo',
          data: {
            "session_id": res.data.session_id,
            "type": "3",
            "version": "app"
          },
          method: "Post",
          success: function (res) {
            console.log(res.data);
            if (!res.data) {
              wx.navigateTo({
                url: "/pages/account/namecheck/personalcertify"
              })
            }else{
              wx.navigateTo({
                url:"/pages/account/namecheck/namecheck"
              })
            }
          }
        })
      }
    })
  }
})